<%include file="user_header.html"/>
<div class="content">
                
    <!--书架 start-->
    <!--二级tab start-->
    <div class="RMTab">
        <strong>
            <a title="${nickname}" href="/user/${uid}">${nickname}</a>
            的视频</strong>
        <ul id="case_tag">
		%for ec,zc in [ ('all',u'全部'),('anime',u'动画'),('music',u'音乐'),('game',u'游戏'),('ent',u'娱乐'),('zj',u'番影'),('art',u'文章') ]:
			%if ec == ecat:
            <li class="selected"><a href="/user/${uid}/videos/${ec}/1" style="color: rgb(255, 255, 255);">${zc}</a></li>
			%else:
            <li><a href="/user/${uid}/videos/${ec}/1">${zc}</a></li>
			%endif
		%endfor 
        </ul>
		<span align=right>
	        <input type="button" onclick="location.href='/user/addvideo'" class="btnbook" value="发布新资源">
		</span>
    </div>
	<div class="singleYellowTip">
        <p>
            [当前资源数 <em id="currentNum">${count[0]}</em> 个，
			 其中动画 <em id="currentNum">${count[1]}</em>集，
			 音乐 <em id="currentNum">${count[2]}</em>首，
			 游戏 <em id="currentNum">${count[3]}</em>个，
			 娱乐 <em id="currentNum">${count[4]}</em>个，
			 番影 <em id="currentNum">${count[5]}</em>个，
			 文章 <em id="currentNum">${count[6]}</em>篇
			]
<!--            <a onclick="UpdateUserCtrl()" class="light" href="javascript:;">[修正数目]</a></p>-->
    </div>
    <!--二级tab end-->
    
    <table width="100%" cellspacing="0" cellpadding="0" class="bookcaseTable">
        <tbody><tr>
			<th width="30">&nbsp;</th>
			<th width="15">&nbsp;</th>
            <th width="50" align="center">类别</th>
            <th>标题</th>
            <th width="160" align="center">更新时间</th>
            <th width="50" align="center">点击</th>
            <th width="50" align="center">评论</th>
            <th width="50" align="center">弹幕</th>
            <th width="50" align="center">收藏</th>
        </tr>
	<!-- id,title,ecat,cat,date,osite,clicks,comments,subs,marks -->
	%for i in range(len(videos)):
		%if i % 2 == 0:
        <tr id="tr_book_${videos[i][0]}">
		%else:
        <tr id="tr_book_${videos[i][0]}" bgcolor="#f2f2f2">
		%endif
			<td align="center"><input type="checkbox" name="chk_books" id="chk_${videos[i][0]}_" value="${videos[i][0]}"></td>
			<td>&nbsp;</td>
			<td align="center"> 
				[<a target="_blank" href="/list/${videos[i][2]}/1">${videos[i][3]}</a>]
			</td>
			<td>
				<a target="_blank" href="/id/${videos[i][0]}.001">${videos[i][1]}</a> <em>-${videos[i][5]}</em> 
				<em><a href="/user/editvideo/${videos[i][0]}">修改</a></em>
			</td>
			<td align="center">
				${videos[i][4]}
			</td>
			<td align="center">${videos[i][6]}</td>
			<td align="center">${videos[i][7]}</td>
			<td align="center">${videos[i][8]}</td>
			<td align="center">${videos[i][9]}</td>
		</tr>
	%endfor
		<tr>
            <th align="center">
                <input type="checkbox" onclick="selectAll(this)" id="chkSelectAll">
            </th>
            <th colspan="8">
                全选
                <input type="button" onclick="addmark();" class="btnWhite" value="收藏">
            </th>
        </tr>
    </tbody></table>
   <dl class="bookcaseIntro">
        <dt>小贴士：</dt>
        <dd>
            1) UP主可以通过点击右上方的"<em>发布新资源</em>"按钮发布视频/文章
		</dd>
        <dd>
            2) 访客在选中视频后，点击"<em>收藏</em>"即可添加视频到自己的收藏夹
		</dd>
    </dl> 
    <!--书架 end-->
	</div>
</div>
<%include file="user_footer.html"/>
